#ifndef PHYSIC_SYSTEM
#define PHYSIC_SYSTEM

#include "Base/System.h"
#include <SFML/Graphics.hpp>
#include "EntityGrid.h"

class PhysicSystem : public BPL::System
{
public:
	PhysicSystem();
    virtual void update(float dt);
    virtual void addEntity(int ent);
	virtual void deleteEntity(int ent);

	EntityMap* getMap();

protected:
	EntityMap mpt_map;

private:
	bool pointCollideTile(const sf::Vector2f& point, bool slope = false);
};

#endif
